<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <script src="lib/jq.js"></script>
    <title>Title</title>
    <script src="lib/jq.js"></script>
</head>
<body>


<div>

</div>
    <script>

        var html = $.ajax({
            url: "test.html",
            type:"post",data:"",
            async:false,success: function(data){
                $("div").text(data)}
        });



        $.ajax({
            url: "test.html",
            type:"get",
            data:"user=aaa",
            async:true,
            success: function(data){
                $("div").text(data)}
        });

    </script>


</body>
</html>